package edu.ucsur.tp.micolectivo.forms;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.JButton;
import java.awt.BorderLayout;

public class FormRegistroPlantilla extends JInternalFrame {
  
  protected JPanel pnlControles;
  protected JPanel pnlAcciones;
  protected JButton btnGuardar;
  protected JButton btnSalir;

  /**
   * Launch the application.
   */
  public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
      public void run() {
        try {
          FormRegistroPlantilla frame = new FormRegistroPlantilla();
          frame.setVisible(true);
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
    });
  }

  /**
   * Create the frame.
   */
  public FormRegistroPlantilla() {
    setTitle("Registro General");
    setBounds(100, 100, 571, 520);
    getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
    
    pnlControles = new JPanel();
    getContentPane().add(pnlControles);
    pnlControles.setLayout(new BorderLayout(0, 0));
    
    pnlAcciones = new JPanel();
    pnlAcciones.setPreferredSize(new Dimension(10, 30));
    pnlAcciones.setMinimumSize(new Dimension(10, 30));
    pnlAcciones.setMaximumSize(new Dimension(32767, 30));
    getContentPane().add(pnlAcciones);
    pnlAcciones.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
    
    btnGuardar = new JButton("Guardar");
    pnlAcciones.add(btnGuardar);
    
    btnSalir = new JButton("Salir");
    pnlAcciones.add(btnSalir);

  }

}
